package cn.zqy.demo.day11.demo02;

public class MyClass {

    /*1.同一个【类】*/
    private int num = 10;

    public void method() {
        System.out.println(num);
    }


    /*2.同一个【包】*/
    int num2 = 20;

    /*3.不同包子类*/
    protected int num3 = 30;

   /* 4.不同包非子类*/

    public int num4 = 40;

}
